package com.cloud.game.room.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.model.GameRoom;
import com.cloud.model.PlayUserClient;

import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.Mono;

@Slf4j
@RestController
@RequestMapping("/room")
public class RoomController {

	// @Autowired
	// private GameService gameService;

	/**
	 * 得到游戏配置
	 * 
	 * @param requestHeader
	 * @return
	 */
	@GetMapping("/aquire")
	public Mono<GameRoom> aquireRoom(@RequestBody PlayUserClient playUserClient) {
		log.debug("start ............");
		return Mono.just(new GameRoom());
	}

}